package com.kksoft.readcm.b;

import com.kksoft.readcm.activity.App;
import com.kksoft.readcm.c.a;
import java.util.concurrent.atomic.AtomicBoolean;

public class m extends d
{
  private a a;
  protected AtomicBoolean q;
  protected AtomicBoolean r;

  public m(int paramInt)
  {
    super(paramInt);
    AtomicBoolean localAtomicBoolean1 = new AtomicBoolean();
    this.q = localAtomicBoolean1;
    AtomicBoolean localAtomicBoolean2 = new AtomicBoolean();
    this.r = localAtomicBoolean2;
  }

  protected void E()
  {
  }

  protected void a()
  {
  }

  public final void a(a parama)
  {
    this.a = parama;
  }

  protected void c()
  {
  }

  public Object call()
  {
    if ((!this.q.get()) && (!this.r.get()));
    while (true)
    {
      try
      {
        a();
      }
      catch (Throwable localThrowable1)
      {
        try
        {
          c();
          if (this.a == null)
            continue;
          //this.a.b(this);
          this.a = null;
          return null;
          //App.b(localThrowable1);
          //this.r.set(1);
          //continue;
        }
        catch (Throwable localThrowable2)
        {
          App.b(localThrowable2);
          //this.r.set(1);
          continue;
        }
      }
      try
      {
        E();
      }
      catch (Throwable localThrowable3)
      {
        App.b(localThrowable3);
      }
    }
  }

  public void n()
  {
    //this.q.set(1);
  }
}

/* Location:           E:\AndroidDecompiler\jd-gui-0.3.3.windows\newrclasses.dex.dex2jar.jar
 * Qualified Name:     com.kksoft.readcm.b.m
 * JD-Core Version:    0.6.0
 */